#include<linux/module.h>
#include<linux/sched.h>
#include<linux/pid.h>
MODULE_LICENSE("GPL");
static int __init find_vpid_init(void)
{
	printk("into find_vpid_init.\n");
	struct pid *vpid=find_vpid(current->pid);

	printk("the count of the pid is :%d\n",vpid->count);
	printk("the level of the pid is :%d\n",vpid->level);

	printk("the pid of the find_vpid is :%d\n",vpid->numbers[vpid->level].nr);

	printk("the pid of current thread is : %d\n",current->pid);
	printk("out find_vpid_init.\n");
	return 0;
}
static void __exit find_vpid_exit(void)
{
	printk("Goodbye find_vpid\n");
}
module_init(find_vpid_init);
module_exit(find_vpid_exit);

